package cn.bdqn.sys.service;

import cn.bdqn.model.EUList;
import cn.bdqn.model.PageBean;
import cn.bdqn.model.R;
import cn.bdqn.sys.model.User;

/**
 * @author Awacky
 * @create 2019-07-27 14:16
 */

//主要是业务逻辑
public interface UserService {
    R login(String username, String password, String imageCode);

    R update(String oldpassword, String newpassword1, String newpassword2);

    EUList<User> list(PageBean pageBean, String username, Boolean sex);

    R save(User user);

    R delete(Integer userid);

    R setrole(Integer userid, String roleids, String rolenames);
}